package cn.sc.summer.sms.properties;

import cn.sc.summer.sms.enums.SmsServerEnum;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 类名：拦截路径配置项
 *
 * @author a-xin
 * @date 2023/12/7 16:22
 */
@Data
@RefreshScope
@Component("smsProperties")
@ConfigurationProperties(prefix = "sms")
public class SmsProperties {

    /**
     * 需要开启的发送短信平台
     *
     * @see SmsServerEnum
     */
    private String enabled;

    /**
     * 短信SDK参数信息,根据不同平台进行配置
     */
    private Map<String, String> params;

}

